﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using XuLyDuLieu.ClassDetails;

namespace XuLyDuLieu
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
          
            
            //double r = 4.39;
            //r = Math.Round(r, 0);
            //int k = (int)r;
            Core.DataProcessing xuly = new Core.Example_2();

            //doc file.
            List<string> listContent = xuly.DocFileCSV(@"E:\\kiemtra.csv");

            List<Cot> laydanhsachcaccot = xuly.LayDanhSachCacCot(listContent);
            
            //lấy danh sách các giỏ hàng.
            List<NhomGio> listGios = xuly.ChiaGioThuocTinh(laydanhsachcaccot, 3, Core.DataProcessing.KieuChia.TheoChieuRong);
            ////dien gia tri con thiếu.
            List<Cot> listcot = xuly.DienGiaTriBiThieu(laydanhsachcaccot);

           

        }
    }
}
